#ifndef ZQOPENCV_H
#define ZQOPENCV_H

#include <QImage>
#include <QDebug>
#include <QDir>
#include "opencv2/opencv.hpp"

namespace zgq{
    //! 1.cv::Mat to QImage
    QImage cvMat2QImage(const cv::Mat &image);

    //! 2.QImage to cv::Mat
    cv::Mat qImage2CvMat(const QImage &image);

    //! @brief 3.make dir in current dir
    bool mkDir(QString dirName,QString currentDir="./");
}

#endif // MQQOPENCV_H
